<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>08-正则表达式</title>

</head>
<body>


<script>

</script>

<script>
    // 以邮箱举例
    let emailReg =  /^\w+@\w+(.[a-zA-Z]{2,3}){1,2}$/;
    // 以手机号举例
    let phoneReg = /^1[34578]\d{9}$/;


</script>

</body>
</html>